package com.shire.shire_interface.model.command;

import java.util.Date;

public class WxCommand {
    private Long id;

    private Integer accountid;

    private Integer cmdstatus;

    private Integer rststatus;

    private Integer cmdtype;

    private Integer priority;

    private String againstid;

    private Integer trytimes;

    private Date starttime;

    private Date endtime;

    private Date senttime;

    private Integer csid;

    private Integer tasktype;

    private Integer taskid;

    private Date createtime;

    private Date updatetime;


    private String reqcontent;

    private String respcontent;

    public String getReqcontent() {
        return reqcontent;
    }

    public void setReqcontent(String reqcontent) {
        this.reqcontent = reqcontent == null ? null : reqcontent.trim();
    }

    public String getRespcontent() {
        return respcontent;
    }

    public void setRespcontent(String respcontent) {
        this.respcontent = respcontent == null ? null : respcontent.trim();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getAccountid() {
        return accountid;
    }

    public void setAccountid(Integer accountid) {
        this.accountid = accountid;
    }

    public Integer getCmdstatus() {
        return cmdstatus;
    }

    public void setCmdstatus(Integer cmdstatus) {
        this.cmdstatus = cmdstatus;
    }

    public Integer getRststatus() {
        return rststatus;
    }

    public void setRststatus(Integer rststatus) {
        this.rststatus = rststatus;
    }

    public Integer getCmdtype() {
        return cmdtype;
    }

    public void setCmdtype(Integer cmdtype) {
        this.cmdtype = cmdtype;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public String getAgainstid() {
        return againstid;
    }

    public void setAgainstid(String againstid) {
        this.againstid = againstid == null ? null : againstid.trim();
    }

    public Integer getTrytimes() {
        return trytimes;
    }

    public void setTrytimes(Integer trytimes) {
        this.trytimes = trytimes;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public Date getSenttime() {
        return senttime;
    }

    public void setSenttime(Date senttime) {
        this.senttime = senttime;
    }

    public Integer getCsid() {
        return csid;
    }

    public void setCsid(Integer csid) {
        this.csid = csid;
    }

    public Integer getTasktype() {
        return tasktype;
    }

    public void setTasktype(Integer tasktype) {
        this.tasktype = tasktype;
    }

    public Integer getTaskid() {
        return taskid;
    }

    public void setTaskid(Integer taskid) {
        this.taskid = taskid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof WxCommand){
            return this.id.equals(((WxCommand)obj).getId());
        }
        else return super.equals(obj);
    }

    @Override
    public int hashCode() {
        if (id != null)
            return id.intValue();
        else return super.hashCode();
    }
}